package com.wjk.kylin.modules.system.menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjk.kylin.modules.system.menu.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  菜单表 Mapper 接口
 * </p>
 *
 * @author wangjkui
 * @since 2020-06-01
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<String> findMenuPermsByUserId(String userId);

    List<String> findAllMenuPermsList();

    List<Menu> findMenuTreeAll();

    List<Menu> findMenuTreeByUserId(String userId);

}
